<%@ page import="com.po.Comment" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    List<Comment> comment = (List<Comment>) request.getAttribute("comment");
%>
<title>游客登录</title>
<div style="text-align: right">
    <a style="text-align: end" href="<%=request.getContextPath()%>/touristLogin">返回信封区</a>
</div>
<h3>信封名字：<%=request.getAttribute("note_name")%></h3><br>
<h3>信封内容：<%=request.getAttribute("note_content")%></h3>
<hr>

<%
    if (comment.isEmpty()) {
        out.print("该纸条还没有人评论，你是游客无法参与评论");
    } else {
        for (Comment comment1 : comment) {
%>
<p>
    用户：<%=comment1.getUser_name()%>:<br><br>
    <%=comment1.getContent()%>
</p>
<hr color="pink">
<%
        }
    }
%>
<style>
    body {
        background-image: url("../picture/new.jpg");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center center;
        background-size: 100% 100%;
    }
</style>
